<?php
include("conn.php");

$name=$_POST['name'];
$ks=$_POST['ks'];
$pz=$_POST['pz'];
$sfzx=$_POST['sfzx'];
$stmt=$conn -> prepare("insert into result(name,ks,pz,sfzx) values(?,?,?,?)");
$stmt->bind_param("ssss",$name,$ks,$pz,$sfzx);
$stmt ->execute();
if($conn->affected_rows){
	echo "添加成功!";
}else{
	echo "Error:".$conn->error;
}
$stmt->close();
$conn->close();
?>